package com.wangjiang.mario.admin.common.constant;

/**
 * jwt 常数变量定义
 */
public class JwtConstant {
    public static  final String HEADER_TOKEN_AUTH = "Authorization";

    // oauth2
    public static final String JWT_REFRESH_TOKEN = "JWT_REFRESH_TOKEN";
    public static final String JWT_ACCESS_TOKEN = "JWT_ACCESS_TOKEN"; // cache中存放的主key
    public static final String JWT_TOKEN = "JWT_TOKEN";
    public static final String AUTHORIZATION_CODE="AUTHORIZATION_CODE";

    // jwt type
    public static final String TOKEN_TYPE = "TOKEN_TYPE";  // token类型

    public static final String LOGIN_TOKEN_TYPE = "LOGIN_TOKEN_TYPE";

    // jwt body 中存放的字段
    public static final String JWT_BODY_LOGINNAME = "loginname";
    public static final String JWT_BODY_PHONE = "phone";
    public static final String JWT_BODY_EMAIL = "email";
    public static final String JWT_BODY_UUID = "uuid";
    public static final String JWT_BODY_ID = "id";
    public static final String JWT_BODY_REALNAME = "real_name" ;
    public static final String JWT_BODY_NICKNAME = "nickname";
}
